package com.task.src.dto;

import java.io.Serializable;

public class MyTask implements Serializable {
    private int id;
    private int userid;
    private int taskid;
    private Task mytask;

    public MyTask() {
    }

    public MyTask(int userid, int taskid, Task mytask) {
        this.userid = userid;
        this.taskid = taskid;
        this.mytask = mytask;
    }

    public MyTask(int id, int userid, int taskid, Task mytask) {
        this.id = id;
        this.userid = userid;
        this.taskid = taskid;
        this.mytask = mytask;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getTaskid() {
        return taskid;
    }

    public void setTaskid(int taskid) {
        this.taskid = taskid;
    }

    public Task getMytask() {
        return mytask;
    }

    public void setMytask(Task mytask) {
        this.mytask = mytask;
    }

    @Override
    public String toString() {
        return "MyTask{" +
                "id=" + id +
                ", userid=" + userid +
                ", taskid=" + taskid +
                ", mytask=" + mytask +
                '}';
    }
}
